package com.forekenow.Demo8.Exercise.E4;

public class Hero extends ActionCharacter implements CanSwim,CanFly{
    public Hero(String name){
        System.out.println(name+"游泳");
    }

    @Override
    public void fly() {
        System.out.println("fly");
    }

    @Override
    public void swim() {
        System.out.println("swim");
    }

    @Override
    void fight(String emp) {
        System.out.println(emp);
    }

    @Override
    void speak(String s) {
        System.out.println(s);
    }
}
